package com.atguigu.gmall.common.config.minio.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName AppMinioApplication
 * @Description 此类描述:专门封装配置文件中Minio的所有参数配置项
 * @Author dangchen
 * @DateTime 2022-11-02 10:01
 * @Version 1.0
 */
@Data
//@Component //只有容器中的组件,才能用spring注解功能增强
@ConfigurationProperties(prefix = "app.minio")
public class AppMinioPrpperties {

    //没有@Value注解,属性名要和yaml文件一致
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;
}
